package com.tj.service.impl;

import com.tj.mapper.UserMapper;
import com.tj.pojo.User;
import com.tj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User getUser(String username) {
        return userMapper.getByUsername(username);
    }
}
